package com.itheima.xiancheng;

public class Test01 {
    public static void main(String[] args) {
        // 创建线程并给线程命名的语法提示：new Thread(new OddTask(),"奇数线程")
        Thread t1 = new Thread(new OddTask(), "奇数线程");
        Thread t2 = new Thread(new EvenTask(), "偶数线程");

        // 启动线程
        t1.start();
        t2.start();
    }
}




